package obj;

import org.newdawn.slick.Graphics;

import util.Rect;
import util.Settings;

/**
 * Platform class.
 * @author VincentLy
 */
public class Platform extends Rect{
	
	private boolean trans;
	
	public Platform(float x,float y,float l,float w,int c,int i){
		super(x,y,l,w,c);
		if(i == 0)
			trans = false;
		else
			trans = true;
	}
	
	/**
	 * @return transparency
	 * @author VincentLy
	 */
	public boolean isTrans(){return trans;}
	
	/**
	 * Draws the platform.
	 * @author VincentLy
	 */
	public void draw(Graphics g){g.texture(this,Settings.texture,true);}
}